Skip to content

fix(consensus-overview): use flat page size to prevent truncation on dimensional data#429

Merged
samcm merged 1 commit intomasterfrom
happy-ant-671
Feb 23, 2026
Merged

fix(consensus-overview): use flat page size to prevent truncation on dimensional data#429
samcm merged 1 commit intomasterfrom
happy-ant-671

Conversation

@samcm
Copy link
Member

@samcm samcm commented Feb 23, 2026

Summary

  • Reorgs and block proposal status charts on /ethereum/consensus/overview were truncated at longer time ranges (180d, 1y, etc.) because pageSize assumed 1 row per time bucket
  • Reorgs have a depth dimension (multiple rows per day) and block proposal status has a status dimension (canonical/orphaned/missed) — so the old per-range pageSize (e.g. 180 for 180d) would only fetch 180 total rows, covering far fewer actual days
  • Replaced per-range pageSize tuning with a flat PAGE_SIZE = 10_000 constant for all queries

…dimensional data

Reorgs (multiple rows per depth) and block proposal status (multiple rows per status) were truncated at longer time ranges because pageSize assumed 1 row per time bucket. Replace per-range pageSize tuning with a flat 10k constant.
@samcm samcm requested a review from Savid as a code owner February 23, 2026 03:59
@samcm samcm merged commit 5a42683 into master Feb 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants